=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)',62,382,'||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document'.split('|'),0,{}));
(function($){
var $window=$(window);
var windowHeight=$window.height();
$window.resize(function (){
windowHeight=$window.height();
});
$.fn.rParallax=function(xpos, speedFactor, outerHeight){
var $this=$(this);
var getHeight;
var firstTop;
var paddingTop=0;
$this.each(function(){firstTop=$this.offset().top;});
if(outerHeight){
getHeight=function(jqo){
return jqo.outerHeight(true);
};}else{
getHeight=function(jqo){
return jqo.height();
};}
if(arguments.length < 1||xpos===null) xpos="50%";
if(arguments.length < 2||speedFactor===null) speedFactor=0.1;
if(arguments.length < 3||outerHeight===null) outerHeight=true;
function update(){
var pos=$window.scrollTop();
$this.each(function(){
var $element=$(this);
var top=$element.offset().top;
var height=getHeight($element);
if(top + height < pos||top > pos + windowHeight){return;}
var new_pos=(Math.round((top - pos) * speedFactor));
if(new_pos<=0){ new_pos=(Math.round((top - pos) * -speedFactor)); }else{ new_pos=-new_pos; }
$this.css('backgroundPosition', xpos + " " + new_pos + "px");
});
}
$window.bind('scroll', update).resize(update);
update();
};}(jQuery));
if(!jQuery.event.special.frame){
(function(d,h){function i(a,b){function e(){f.frameCount++;a.call(f)}var f=this,g;this.frameDuration=b||25;this.frameCount=-1;this.start=function(){e();g=setInterval(e,this.frameDuration)};this.stop=function(){clearInterval(g);g=null}}function j(){var a=d.event.special.frame.handler,b=d.Event("frame"),e=this.array,f=e.length;for(b.frameCount=this.frameCount;f--;)a.call(e[f],b)}var c;if(!d.event.special.frame)d.event.special.frame={setup:function(a){if(c)c.array.push(this);else{c=new i(j,a&&a.frameDuration);
c.array=[this];var b=setTimeout(function(){c.start();clearTimeout(b);b=null},0)}},teardown:function(){for(var a=c.array,b=a.length;b--;)if(a[b]===this){a.splice(b,1);break}if(a.length===0){c.stop();c=h}},handler:function(){d.event.handle.apply(this,arguments)}}})(jQuery);
}
;(function($, window, document, undefined){
'use strict';
var NAME='parallax';
var MAGIC_NUMBER=30;
var DEFAULTS={
relativeInput: false,
clipRelativeInput: false,
calibrationThreshold: 100,
calibrationDelay: 500,
supportDelay: 500,
calibrateX: false,
calibrateY: true,
invertX: true,
invertY: true,
limitX: false,
limitY: false,
scalarX: 10.0,
scalarY: 10.0,
frictionX: 0.1,
frictionY: 0.1,
originX: 0.5,
originY: 0.5
};
function Plugin(element, options){
this.element=element;
this.$context=$(element).data('api', this);
this.$layers=this.$context.find('.layer');
var data={
calibrateX: this.$context.data('calibrate-x')||null,
calibrateY: this.$context.data('calibrate-y')||null,
invertX: this.$context.data('invert-x')||null,
invertY: this.$context.data('invert-y')||null,
limitX: parseFloat(this.$context.data('limit-x'))||null,
limitY: parseFloat(this.$context.data('limit-y'))||null,
scalarX: parseFloat(this.$context.data('scalar-x'))||null,
scalarY: parseFloat(this.$context.data('scalar-y'))||null,
frictionX: parseFloat(this.$context.data('friction-x'))||null,
frictionY: parseFloat(this.$context.data('friction-y'))||null,
originX: parseFloat(this.$context.data('origin-x'))||null,
originY: parseFloat(this.$context.data('origin-y'))||null
};
for (var key in data){
if(data[key]===null) delete data[key];
}
$.extend(this, DEFAULTS, options, data);
this.calibrationTimer=null;
this.calibrationFlag=true;
this.enabled=false;
this.depths=[];
this.raf=null;
this.bounds=null;
this.ex=0;
this.ey=0;
this.ew=0;
this.eh=0;
this.ecx=0;
this.ecy=0;
this.erx=0;
this.ery=0;
this.cx=0;
this.cy=0;
this.ix=0;
this.iy=0;
this.mx=0;
this.my=0;
this.vx=0;
this.vy=0;
this.onMouseMove=this.onMouseMove.bind(this);
this.onDeviceOrientation=this.onDeviceOrientation.bind(this);
this.onOrientationTimer=this.onOrientationTimer.bind(this);
this.onCalibrationTimer=this.onCalibrationTimer.bind(this);
this.onAnimationFrame=this.onAnimationFrame.bind(this);
this.onWindowResize=this.onWindowResize.bind(this);
this.initialise();
}
Plugin.prototype.transformSupport=function(value){
var element=document.createElement('div');
var propertySupport=false;
var propertyValue=null;
var featureSupport=false;
var cssProperty=null;
var jsProperty=null;
for (var i=0, l=this.vendors.length; i < l; i++){
if(this.vendors[i]!==null){
cssProperty=this.vendors[i][0] + 'transform';
jsProperty=this.vendors[i][1] + 'Transform';
}else{
cssProperty='transform';
jsProperty='transform';
}
if(element.style[jsProperty]!==undefined){
propertySupport=true;
break;
}}
switch(value){
case '2D':
featureSupport=propertySupport;
break;
case '3D':
if(propertySupport){
var body=document.body||document.createElement('body');
var documentElement=document.documentElement;
var documentOverflow=documentElement.style.overflow;
if(!document.body){
documentElement.style.overflow='hidden';
documentElement.appendChild(body);
body.style.overflow='hidden';
body.style.background='';
}
body.appendChild(element);
element.style[jsProperty]='translate3d(1px,1px,1px)';
propertyValue=window.getComputedStyle(element).getPropertyValue(cssProperty);
featureSupport=propertyValue!==undefined&&propertyValue.length > 0&&propertyValue!=="none";
documentElement.style.overflow=documentOverflow;
body.removeChild(element);
}
break;
}
return featureSupport;
};
Plugin.prototype.ww=null;
Plugin.prototype.wh=null;
Plugin.prototype.wcx=null;
Plugin.prototype.wcy=null;
Plugin.prototype.wrx=null;
Plugin.prototype.wry=null;
Plugin.prototype.portrait=null;
Plugin.prototype.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);
Plugin.prototype.vendors=[null,['-webkit-','webkit'],['-moz-','Moz'],['-o-','O'],['-ms-','ms']];
Plugin.prototype.motionSupport = !!window.DeviceMotionEvent;
Plugin.prototype.orientationSupport = !!window.DeviceOrientationEvent;
Plugin.prototype.orientationStatus=0;
Plugin.prototype.transform2DSupport=Plugin.prototype.transformSupport('2D');
Plugin.prototype.transform3DSupport=Plugin.prototype.transformSupport('3D');
Plugin.prototype.propertyCache={};
Plugin.prototype.initialise=function(){
if(this.$context.css('position')==='static'){
this.$context.css({
position:'relative'
});
}
this.accelerate(this.$context);
this.updateLayers();
this.updateDimensions();
this.enable();
this.queueCalibration(this.calibrationDelay);
};
Plugin.prototype.updateLayers=function(){
this.$layers=this.$context.find('.layer');
this.depths=[];
this.$layers.css({
position:'absolute',
display:'block',
left: 0,
top: 0
});
this.$layers.first().css({
position:'relative'
});
this.accelerate(this.$layers);
this.$layers.each($.proxy(function(index, element){
this.depths.push($(element).data('depth')||0);
}, this));
};
Plugin.prototype.updateDimensions=function(){
this.ww=window.innerWidth;
this.wh=window.innerHeight;
this.wcx=this.ww * this.originX;
this.wcy=this.wh * this.originY;
this.wrx=Math.max(this.wcx, this.ww - this.wcx);
this.wry=Math.max(this.wcy, this.wh - this.wcy);
};
Plugin.prototype.updateBounds=function(){
this.bounds=this.element.getBoundingClientRect();
this.ex=this.bounds.left;
this.ey=this.bounds.top;
this.ew=this.bounds.width;
this.eh=this.bounds.height;
this.ecx=this.ew * this.originX;
this.ecy=this.eh * this.originY;
this.erx=Math.max(this.ecx, this.ew - this.ecx);
this.ery=Math.max(this.ecy, this.eh - this.ecy);
};
Plugin.prototype.queueCalibration=function(delay){
clearTimeout(this.calibrationTimer);
this.calibrationTimer=setTimeout(this.onCalibrationTimer, delay);
};
Plugin.prototype.enable=function(){
if(!this.enabled){
this.enabled=true;
if(this.orientationSupport){
this.portrait=null;
window.addEventListener('deviceorientation', this.onDeviceOrientation);
setTimeout(this.onOrientationTimer, this.supportDelay);
}else{
this.cx=0;
this.cy=0;
this.portrait=false;
window.addEventListener('mousemove', this.onMouseMove);
}
window.addEventListener('resize', this.onWindowResize);
this.raf=requestAnimationFrame(this.onAnimationFrame);
}};
Plugin.prototype.disable=function(){
if(this.enabled){
this.enabled=false;
if(this.orientationSupport){
window.removeEventListener('deviceorientation', this.onDeviceOrientation);
}else{
window.removeEventListener('mousemove', this.onMouseMove);
}
window.removeEventListener('resize', this.onWindowResize);
cancelAnimationFrame(this.raf);
}};
Plugin.prototype.calibrate=function(x, y){
this.calibrateX=x===undefined ? this.calibrateX:x;
this.calibrateY=y===undefined ? this.calibrateY:y;
};
Plugin.prototype.invert=function(x, y){
this.invertX=x===undefined ? this.invertX:x;
this.invertY=y===undefined ? this.invertY:y;
};
Plugin.prototype.friction=function(x, y){
this.frictionX=x===undefined ? this.frictionX:x;
this.frictionY=y===undefined ? this.frictionY:y;
};
Plugin.prototype.scalar=function(x, y){
this.scalarX=x===undefined ? this.scalarX:x;
this.scalarY=y===undefined ? this.scalarY:y;
};
Plugin.prototype.limit=function(x, y){
this.limitX=x===undefined ? this.limitX:x;
this.limitY=y===undefined ? this.limitY:y;
};
Plugin.prototype.origin=function(x, y){
this.originX=x===undefined ? this.originX:x;
this.originY=y===undefined ? this.originY:y;
};
Plugin.prototype.clamp=function(value, min, max){
value=Math.max(value, min);
value=Math.min(value, max);
return value;
};
Plugin.prototype.css=function(element, property, value){
var jsProperty=this.propertyCache[property];
if(!jsProperty){
for (var i=0, l=this.vendors.length; i < l; i++){
if(this.vendors[i]!==null){
jsProperty=$.camelCase(this.vendors[i][1] + '-' + property);
}else{
jsProperty=property;
}
if(element.style[jsProperty]!==undefined){
this.propertyCache[property]=jsProperty;
break;
}}
}
element.style[jsProperty]=value;
};
Plugin.prototype.accelerate=function($element){
for (var i=0, l=$element.length; i < l; i++){
var element=$element[i];
this.css(element, 'transform', 'translate3d(0,0,0)');
this.css(element, 'transform-style', 'preserve-3d');
this.css(element, 'backface-visibility', 'hidden');
}};
Plugin.prototype.setPosition=function(element, x, y){
x +='px';
y +='px';
if(this.transform3DSupport){
this.css(element, 'transform', 'translate3d('+x+','+y+',0)');
}else if(this.transform2DSupport){
this.css(element, 'transform', 'translate('+x+','+y+')');
}else{
element.style.left=x;
element.style.top=y;
}};
Plugin.prototype.onOrientationTimer=function(event){
if(this.orientationSupport&&this.orientationStatus===0){
this.disable();
this.orientationSupport=false;
this.enable();
}};
Plugin.prototype.onCalibrationTimer=function(event){
this.calibrationFlag=true;
};
Plugin.prototype.onWindowResize=function(event){
this.updateDimensions();
};
Plugin.prototype.onAnimationFrame=function(){
this.updateBounds();
var dx=this.ix - this.cx;
var dy=this.iy - this.cy;
if((Math.abs(dx) > this.calibrationThreshold)||(Math.abs(dy) > this.calibrationThreshold)){
this.queueCalibration(0);
}
if(this.portrait){
this.mx=this.calibrateX ? dy:this.iy;
this.my=this.calibrateY ? dx:this.ix;
}else{
this.mx=this.calibrateX ? dx:this.ix;
this.my=this.calibrateY ? dy:this.iy;
}
this.mx *=this.ew * (this.scalarX / 100);
this.my *=this.eh * (this.scalarY / 100);
if(!isNaN(parseFloat(this.limitX))){
this.mx=this.clamp(this.mx, -this.limitX, this.limitX);
}
if(!isNaN(parseFloat(this.limitY))){
this.my=this.clamp(this.my, -this.limitY, this.limitY);
}
this.vx +=(this.mx - this.vx) * this.frictionX;
this.vy +=(this.my - this.vy) * this.frictionY;
for (var i=0, l=this.$layers.length; i < l; i++){
var depth=this.depths[i];
var layer=this.$layers[i];
var xOffset=this.vx * depth * (this.invertX ? -1:1);
var yOffset=this.vy * depth * (this.invertY ? -1:1);
this.setPosition(layer, xOffset, yOffset);
}
this.raf=requestAnimationFrame(this.onAnimationFrame);
};
Plugin.prototype.onDeviceOrientation=function(event){
if(!this.desktop&&event.beta!==null&&event.gamma!==null){
this.orientationStatus=1;
var x=(event.beta||0) / MAGIC_NUMBER;
var y=(event.gamma||0) / MAGIC_NUMBER;
var portrait=window.innerHeight > window.innerWidth;
if(this.portrait!==portrait){
this.portrait=portrait;
this.calibrationFlag=true;
}
if(this.calibrationFlag){
this.calibrationFlag=false;
this.cx=x;
this.cy=y;
}
this.ix=x;
this.iy=y;
}};
Plugin.prototype.onMouseMove=function(event){
var clientX=event.clientX;
var clientY=event.clientY;
if(!this.orientationSupport&&this.relativeInput){
if(this.clipRelativeInput){
clientX=Math.max(clientX, this.ex);
clientX=Math.min(clientX, this.ex + this.ew);
clientY=Math.max(clientY, this.ey);
clientY=Math.min(clientY, this.ey + this.eh);
}
this.ix=(clientX - this.ex - this.ecx) / this.erx;
this.iy=(clientY - this.ey - this.ecy) / this.ery;
}else{
this.ix=(clientX - this.wcx) / this.wrx;
this.iy=(clientY - this.wcy) / this.wry;
}};
var API={
enable: Plugin.prototype.enable,
disable: Plugin.prototype.disable,
updateLayers: Plugin.prototype.updateLayers,
calibrate: Plugin.prototype.calibrate,
friction: Plugin.prototype.friction,
invert: Plugin.prototype.invert,
scalar: Plugin.prototype.scalar,
limit: Plugin.prototype.limit,
origin: Plugin.prototype.origin
};
$.fn[NAME]=function (value){
var args=arguments;
return this.each(function (){
var $this=$(this);
var plugin=$this.data(NAME);
if(!plugin){
plugin=new Plugin(this, value);
$this.data(NAME, plugin);
}
if(API[value]){
plugin[value].apply(plugin, Array.prototype.slice.call(args, 1));
}});
};})(window.jQuery||window.Zepto, window, document);
;(function(){
var lastTime=0;
var vendors=['ms', 'moz', 'webkit', 'o'];
for(var x=0; x < vendors.length&&!window.requestAnimationFrame; ++x){
window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];
}
if(!window.requestAnimationFrame){
window.requestAnimationFrame=function(callback, element){
var currTime=new Date().getTime();
var timeToCall=Math.max(0, 16 - (currTime - lastTime));
var id=window.setTimeout(function(){ callback(currTime + timeToCall); },
timeToCall);
lastTime=currTime + timeToCall;
return id;
};}
if(!window.cancelAnimationFrame){
window.cancelAnimationFrame=function(id){
clearTimeout(id);
};}}());
(function($){function injector(t, splitter, klass, after){var a=t.text().split(splitter), inject='';if(a.length){$(a).each(function(i,item){inject +=''+item+''+after;});t.empty().append(inject);}}var methods={init:function(){return this.each(function(){injector($(this), '', 'char', '');});}, words:function(){return this.each(function(){injector($(this), ' ', 'word', ' ');});},lines:function(){return this.each(function(){var r="eefec303079ad17405c889e092e105b0";injector($(this).children("br").replaceWith(r).end(), r, 'line', '');});}};$.fn.lettering=function(method){if(method&&methods[method]){return methods[ method ].apply(this, [].slice.call(arguments, 1));}else if(method==='letters'||! method){return methods.init.apply(this, [].slice.call(arguments, 0)); }$.error('Method ' + method + ' does not exist on jQuery.lettering');return this;};})(jQuery);
(function ($){
"use strict";function isInEffect (effect){return /In/.test(effect)||$.inArray(effect, $.fn.textillate.defaults.inEffects) >=0;};
function isOutEffect (effect){return /Out/.test(effect)||$.inArray(effect, $.fn.textillate.defaults.outEffects) >=0;};
function getData (node){
var attrs=node.attributes||[]
, data={};
if(!attrs.length) return data;
$.each(attrs, function (i, attr){
if(/^data-in-*/.test(attr.nodeName)){
data.in=data.in||{};
data.in[attr.nodeName.replace(/data-in-/, '')]=attr.nodeValue;
}else if(/^data-out-*/.test(attr.nodeName)){
data.out=data.out||{};
data.out[attr.nodeName.replace(/data-out-/, '')]=attr.nodeValue;
}else if(/^data-*/.test(attr.nodeName)){
data[attr.nodeName]=attr.nodeValue;
}})
return data;
}
function shuffle(o){for (var j, x, i=o.length; i; j=parseInt(Math.random() * i), x=o[--i], o[i]=o[j], o[j]=x);return o;}
function animate($c,effect,cb){$c.addClass('animated ' + effect).css('visibility', 'visible').show();$c.one('animationend webkitAnimationEnd oAnimationEnd', function (){$c.removeClass('animated ' + effect);cb&&cb();});}
function animateChars ($chars, options, cb){
var that=this,count=$chars.length;
if(!count){cb&&cb();return;}
if(options.shuffle) $chars=shuffle($chars);
if(options.reverse) $chars=$chars.toArray().reverse();
$.each($chars, function (i, c){
var $char=$(c);
function complete (){
if(isInEffect(options.effect)){$char.css('visibility', 'visible');}else if(isOutEffect(options.effect)){$char.css('visibility', 'hidden');}
count -=1;if(!count&&cb) cb();}
var delay=options.sync ? options.delay:options.delay * i * options.delayScale;
$char.text() ? setTimeout(function (){ animate($char, options.effect, complete) }, delay):complete();
});
};
var Textillate=function (element, options){
var base=this
, $element=$(element);
base.init=function (){
base.$texts=$element.find(options.selector);
if(!base.$texts.length){
base.$texts=$('');
$element.html(base.$texts);
}
base.$texts.hide();
base.$current=$('')
.text(base.$texts.find(':first-child').html())
.prependTo($element);
if(isInEffect(options.effect)){
base.$current.css('visibility', 'hidden');
}else if(isOutEffect(options.effect)){
base.$current.css('visibility', 'visible');
}
base.setOptions(options);
setTimeout(function (){
base.options.autoStart&&base.start();
}, base.options.initialDelay)
};
base.setOptions=function (options){
base.options=options;
};
base.triggerEvent=function (name){
var e=$.Event(name + '.tlt');
$element.trigger(e, base);
return e;
};
base.in=function (index, cb){
index=index||0;
var $elem=base.$texts.find(':nth-child(' + (index + 1) + ')')
, options=$.extend({}, base.options, getData($elem))
, $chars;
$elem.addClass('current');
base.triggerEvent('inAnimationBegin');
base.$current
.text($elem.html())
.lettering('words');
base.$current.find('[class^="word"]')
.css({
'display': 'inline-block',
'-webkit-transform': 'translate3d(0,0,0)',
'-moz-transform': 'translate3d(0,0,0)',
'-o-transform': 'translate3d(0,0,0)',
'transform': 'translate3d(0,0,0)'
})
.each(function (){ $(this).lettering() });
$chars=base.$current
.find('[class^="char"]')
.css('display', 'inline-block');
if(isInEffect(options.in.effect)){
$chars.css('visibility', 'hidden');
}else if(isOutEffect(options.in.effect)){
$chars.css('visibility', 'visible');
}
base.currentIndex=index;
animateChars($chars, options.in, function (){
base.triggerEvent('inAnimationEnd');
if(options.in.callback) options.in.callback();
if(cb) cb(base);
});
};
base.out=function (cb){
var $elem=base.$texts.find(':nth-child(' + (base.currentIndex + 1) + ')')
, $chars=base.$current.find('[class^="char"]')
, options=$.extend({}, base.options, getData($elem));
base.triggerEvent('outAnimationBegin');
animateChars($chars, options.out, function (){
$elem.removeClass('current');
base.triggerEvent('outAnimationEnd');
if(options.out.callback) options.out.callback();
if(cb) cb(base);
});
};
base.start=function (index){
base.triggerEvent('start');
(function run (index){
base.in(index, function (){
var length=base.$texts.children().length;
index +=1;
if(!base.options.loop&&index >=length){
if(base.options.callback) base.options.callback();
base.triggerEvent('end');
}else{
index=index % length;
setTimeout(function (){
base.out(function (){
run(index)
});
}, base.options.minDisplayTime);
}});
}(index||0));
};
base.init();
}
$.fn.textillate=function (settings, args){
return this.each(function (){
var $this=$(this)
, data=$this.data('textillate')
, options=$.extend(true, {}, $.fn.textillate.defaults, getData(this), typeof settings=='object'&&settings);
if(!data){
$this.data('textillate', (data=new Textillate(this, options)));
}else if(typeof settings=='string'){
data[settings].apply(data, [].concat(args));
}else{
data.setOptions.call(data, options);
}})
};
$.fn.textillate.defaults={
selector: '.texts',
loop: false,
minDisplayTime: 2000,
initialDelay: 0,
in: {
effect: 'fadeInLeftBig',
delayScale: 1.5,
delay: 50,
sync: false,
reverse: false,
shuffle: false,
callback: function (){}},
out: {
effect: 'hinge',
delayScale: 1.5,
delay: 50,
sync: false,
reverse: false,
shuffle: false,
callback: function (){}},
autoStart: true,
inEffects: [],
outEffects: [ 'hinge' ],
callback: function (){}};}(jQuery));
(function($){
$.fn.extend({
ozyBgScroller: function(options){
var defaults={
direction: 'h',
current: 0,
scrollSpeed: 70,
step: 1
};
var options=$.extend(defaults, options);
return this.each(function(){
var o=options, obj=$(this);
function bgscroll(){
o.current=parseInt(o.current) + parseInt(o.step);
$(obj).css("backgroundPosition", (o.direction=='h') ? o.current+"px 0":"0 " + o.current+"px");
}
setInterval(bgscroll, o.scrollSpeed);
});
}});
})(jQuery);
!function(e){var a=new Array("#1ABC9C","#2ecc71","#3498db","#9b59b6","#34495e","#f1c40f","#e67e22","#e74c3c");var h=new Array("NE","SE","SW","NW");var f={fade:false,color:"random",boxShadow:false,angle:"random"};function d(j,i){j=j.replace("#","");r=parseInt(j.substring(0,2),16);g=parseInt(j.substring(2,4),16);b=parseInt(j.substring(4,6),16);result="rgba("+r+","+g+","+b+","+i/100+")";return result}function c(m,j){m=String(m).replace(/[^0-9a-f]/gi,"");if(m.length<6){m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]}j=j||0;var k="#",n,l;for(l=0;l<3;l++){n=parseInt(m.substr(l*2,2),16);n=Math.round(Math.min(Math.max(0,n+(n*j)),255)).toString(16);k+=("00"+n).substr(n.length)}return k}e.fn.flatshadow=function(i){var j=e.extend({},f,i);return this.each(function(){el=e(this);if(j.fade==true){width=Math.round(el.outerWidth()/3);height=Math.round(el.outerHeight()/3)}else{width=Math.round(el.outerWidth());height=Math.round(el.outerHeight())}if(j.boxShadow!=false){var s=j.boxShadow}if(j.color!="random"&&!el.attr("data-color")){var k=j.color}else{var k=a[Math.floor(Math.random()*a.length)];if(el.attr("data-color")){var k=el.attr("data-color")}}if(j.angle!="random"&&!el.attr("data-angle")){var q=j.angle}else{var q=h[Math.floor(Math.random()*h.length)];if(el.attr("data-angle")){var q=el.attr("data-angle")}}var o=c(k,-0.3);var m="";if(j.boxShadow!=false){var n=""}else{var n="none"}switch(q){case"N":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+="0px "+(l*2)*-1+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+="0px "+l*-1+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"NE":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+=l*2+"px "+(l*2)*-1+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l+"px "+l*-1+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"E":for(var l=1;l<=width;l++){if(j.boxShadow!=false){n+=l*2+"px 0px 0px "+d(s,(50-l/width*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l+"px 0px 0px "+p;if(l!=width){m+=", ";n+=", "}}break;case"SE":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+=l*2+"px "+l*2+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l+"px "+l+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"S":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+="0px "+l*2+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+="0px "+l+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"SW":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+=(l*2)*-1+"px "+l*2+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l*-1+"px "+l+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"W":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+=(l*2)*-1+"px 0px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l*-1+"px 0px 0px "+p;if(l!=height){m+=", ";n+=", "}}break;case"NW":for(var l=1;l<=height;l++){if(j.boxShadow!=false){n+=(l*2)*-1+"px "+(l*2)*-1+"px 0px "+d(s,(50-l/height*100))}if(j.fade!=false){var p=d(o,100-l/height*100)}else{var p=o}m+=l*-1+"px "+l*-1+"px 0px "+p;if(l!=height){m+=", ";n+=", "}}break}el.css({"text-shadow":m,"box-shadow":n})})}}(window.jQuery);
!function(a){function b(b,e){this.element=a(b),this.settings=a.extend({},d,e),this._defaults=d,this._name=c,this.init()}var c="Morphext",d={animation:"bounceIn",separator:",",speed:2e3};b.prototype={init:function(){var b=this;this.phrases=[],this.element.addClass("morphext"),a.each(this.element.text().split(this.settings.separator),function(a,c){b.phrases.push(c)}),this.element.html(""+this.phrases.join("")+""),this.index=-1,this.animate(),setInterval(function(){b.animate()},this.settings.speed)},animate:function(){this.index+1===this.phrases.length&&(this.index=-1),++this.index,this.element.find("span").removeClass().eq(this.index).addClass("animated "+this.settings.animation)}},a.fn[c]=function(d){return this.each(function(){a.data(this,"plugin_"+c)||a.data(this,"plugin_"+c,new b(this,d))})}}(jQuery,window,document);
function ozy_preloadImages(arr){
var newimages=[], loadedimages=0
var postaction=function(){}
var arr=(typeof arr!="object")? [arr]:arr
function imageloadpost(){
loadedimages++
if(loadedimages==arr.length){
postaction(newimages)
}}
for (var i=0; i';var s=m+"-li";var r=b.outerWidth();a("> li",b).each(function(){var D=a("> ul",this);var u=a("> a",this);if(D.length){u.addClass(m).append($arrow);D.addClass("sub").wrap('');var y=a(this).position();if(headerType.menu_align==="right"){pl=y.left}else{if(D.hasClass("mega-menu-html-shortcode")){pl=y.left-13}else{pl=y.left-13}}if(a("ul",D).length){a(this).addClass(s);a("."+n,this).addClass("mega");a("> li",D).each(function(){if(!a(this).hasClass(k)){a(this).addClass("mega-unit");if(a("> ul",this).length){a(this).addClass(j);a("> a",this).addClass(j+"-a")}else{a(this).addClass(o);a("> a",this).addClass(o+"-a")}}});var v=a(".mega-unit",this);rowSize=parseInt(d.rowItems);for(var J=0;J')}D.show();var B=a(this).width();var H=pl+B;var G=r-H;var F=D.outerWidth();var E=D.parent("."+n).outerWidth();var C=E-F;if(d.fullWidth==true){var w=r-C;D.parent("."+n).css({width:w+"px"});b.addClass("full-width")}var x=a(".mega-unit",D).outerWidth(true);var I=a(".row:eq(0) .mega-unit",D).length;var z=x*I;var A=z+C;a(".row",this).each(function(){a(".mega-unit:last",this).addClass("last");var O=undefined;a(".mega-unit > a",this).each(function(){var P=parseInt(a(this).height());if(O===undefined||O a",this).css("height",O+"px");a(this).css("width",z+"px")});if(d.fullWidth==true){M={left:0}}else{var N=(jQuery("#nav-primary").width()+jQuery("#nav-primary").offset().left);var K=GN){M={right:0}}else{if(L<0){M={left:0}}else{if(G li > a",b).outerHeight(true);a("."+n,b).css({top:(t+1)+"px"}).css("z-index","1000");if(d.event=="hover"){var q={sensitivity:1,interval:50,over:i,timeout:200,out:h};a("li",b).hoverIntent(q)}if(d.event=="click"){a("body").mouseup(function(u){if(!a(u.target).parents(".mega-hover").length){g()}});a("> li > a."+m,b).click(function(u){var v=a(this).parent();if(v.hasClass("mega-hover")){e(v)}else{f(v)}u.preventDefault()})}d.onLoad.call(this)}})}})(jQuery);
function close_fancybox(){
"use strict";
jQuery.fancybox.close();
}
window.onblur=function(){ jQuery(window).resize(); }
window.onfocus=function(){ jQuery(window).resize(); }
function getCookieValue(key){
"use strict";
var currentcookie=document.cookie, firstidx, lastidx;
if(currentcookie.length > 0){
firstidx=currentcookie.indexOf(key + "=");
if(firstidx!==-1){
firstidx=firstidx + key.length + 1;
lastidx=currentcookie.indexOf(";", firstidx);
if(lastidx===-1){
lastidx=currentcookie.length;
}
return decodeURIComponent(currentcookie.substring(firstidx, lastidx));
}}
return "";
}
function check_favorite_like_cookie(post_id){
"use strict";
var str=getCookieValue("post_id");
if(str.indexOf("[" + post_id + "]") > -1){
return true;
}
return false;
}
function write_favorite_like_cookie(post_id){
"use strict";
var now=new Date();
now.setMonth(now.getYear() + 1);
post_id="[" + post_id + "]," + getCookieValue("post_id");
document.cookie="post_id=" + post_id + "; expires=" + now.toGMTString() + "; path=/; ";
}
function ajax_favorite_like(post_id, p_post_type, p_vote_type, $obj){
"use strict";
if(!check_favorite_like_cookie(post_id)){
jQuery.ajax({
url: $WP_AJAX_URL,
data: { action: 'ozy_ajax_like', vote_post_id: post_id, vote_post_type: p_post_type, vote_type: p_vote_type },
cache: false,
success: function(data){
if(parseInt(data,0) > 0){
write_favorite_like_cookie(post_id);
jQuery('span', $obj).text(data);
}else{
alert(data);
}},
error: function(MLHttpRequest, textStatus, errorThrown){
alert("MLHttpRequest: " + MLHttpRequest + "\ntextStatus: " + textStatus + "\nerrorThrown: " + errorThrown);
}});
}}
function ozy_ajax_load_more_blog(order, orderby, item_count, category_name, offset, found, e, layout_type){
jQuery.ajax({
url: $WP_AJAX_URL,
data: { action: 'ozy_ajax_load_more', p_order:order, p_orderby:orderby, p_item_count:item_count, p_category_name:category_name, p_offset:offset, p_layout_type:layout_type},
cache: false,
success: function(data){
jQuery('.modern-grid').append(data);
jQuery(e).text(jQuery(e).removeClass('pulse animation animated').data('loadmorecaption'));
jQuery('.modern-grid').find('figure:hidden').each(function(index, element){
var $this=jQuery(this);
setTimeout(function(){ $this.css('display', 'inherit').addClass('animated fadeInUpBig'); }, (index+1)*150);
});
if((item_count + offset) >=found){
jQuery(e).hide();
}},
error: function(MLHttpRequest, textStatus, errorThrown){
alert(errorThrown);
}});
}
function ozyPopupWindow(url, title, w, h){
"use strict";
var left=(screen.width/2)-(w/2), top=(screen.height/2)-(h/2);
return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
function ozyGetOsVersion(){
"use strict";
var agent=window.navigator.userAgent.toLowerCase(),
start=agent.indexOf('os ');
if(/iphone|ipod|ipad/.test(agent)&&start > -1){
return window.Number(agent.substr(start + 3, 3).replace('_', '.'));
}
return 0;
}
function ozy_full_row_fix(){
"use strict";
jQuery('.ozy-custom-fullheight-row').each(function(){
jQuery(this).css('min-height', jQuery(window).innerHeight() - ((jQuery(this).outerHeight() - jQuery(this).height())) + 'px');
});
}
function ozy_floating_box_init(){
"use strict";
setTimeout(function(){
jQuery('.ozy-floating-box').each(function(){
var h=jQuery(this).parents('.wpb_row').css('min-height')!=='0px'? jQuery(this).parents('.wpb_row').css('min-height'):jQuery(this).parents('.wpb_row').height()+'px';
jQuery(this).css('height', h);
});
}, (parseInt(ozyGetOsVersion()) <=0 ? 0:1000));
}
function ozy_fix_row_video(){
"use strict";
if(parseInt(ozyGetOsVersion()) <=0){
jQuery('.wpb_row>video').each(function(){
var videoAspectRatio,viewportWidth,viewportHeight,viewportAspectRatio;
videoAspectRatio=jQuery(this).outerWidth() / jQuery(this).outerHeight();
viewportWidth=jQuery(this).parent('div.wpb_row').outerWidth();
viewportHeight=jQuery(this).parent('div.wpb_row').outerHeight();
viewportAspectRatio=viewportWidth / viewportHeight;
if(viewportAspectRatio > videoAspectRatio){
jQuery(this).css({width: viewportWidth + 'px', height: 'auto'});
}else{
jQuery(this).css({width: 'auto', height: viewportHeight + 'px'});
}});
}}
function ozy_share_button(){
"use strict";
jQuery(document).on('click', '.post-submeta>div>div.button>a', function(e){
e.preventDefault();
ozyPopupWindow(jQuery(this).attr('href'), 'Share', 640, 440);
});
}
function ozy_hash_scroll_fix(){
"use strict";
setTimeout(function(){
if(window.location.hash){
var hash=window.location.hash;
if(jQuery(hash).length&&!jQuery(hash).hasClass('real3dflipbook')){
jQuery('html,body').animate({scrollTop: jQuery(hash).offset().top}, 1600, 'easeInOutExpo');
}}}, 200);
}
function ozy_fix_footer_widget_height(){
if(jQuery(window).width()>479){
jQuery('#footer-widget-bar .container section').equalheight(3);
}else{
jQuery('#footer-widget-bar .container section').css('height', 'inherit');
}}
function ozy_primary_menu_fix(){
if(!jQuery('body').hasClass('ozy-alternate-menu')&&jQuery(window).width() < 960){
jQuery('body').addClass('ozy-alternate-menu ozy-page-locked ozy-menu-script');
}else if(jQuery('body').hasClass('ozy-menu-script')&&jQuery(window).width() > 960){
jQuery('body').removeClass('ozy-alternate-menu ozy-page-locked ozy-menu-script');
}}
function ozy_click_hash_check($this){
if(location.pathname.replace(/^\//,'')==$this.pathname.replace(/^\//,'')
|| location.hostname==$this.hostname){
var target=$($this.hash);
target=target.length ? target:jQuery('[name=' + $this.hash.slice(1) +']');
if(target.length){
jQuery('html,body').animate({
scrollTop: target.offset().top
}, 1600, 'easeInOutExpo');
return false;
}}
return true;
}
var windowScrollTop=jQuery(window).scrollTop();
window.scrollTo(0, 0);
setTimeout(function(){
"use strict";
window.scrollTo(0, windowScrollTop);
}, 1);
jQuery(window).resize(function(){
"use strict";
ozy_full_row_fix();
ozy_floating_box_init();
ozy_fix_row_video();
ozy_fix_footer_widget_height();
ozy_primary_menu_fix();
if('classic'===headerType.menu_type){
jQuery('ul.sf-menu').supersubs({minWidth:8,maxWidth:16,extraWidth:1}).superfish({
delay: 200,
animation: {height:'show'},
speed: 125,
autoArrows: true
});
}});
jQuery(document).ready(function($){
"use strict";
var ozyIosVersion;
ozyIosVersion=parseInt(ozyGetOsVersion());
ozy_share_button();
ozy_hash_scroll_fix();
ozy_full_row_fix();
ozy_floating_box_init();
ozy_fix_footer_widget_height();
ozy_primary_menu_fix();
if('classic'===headerType.menu_type){
jQuery('ul.sf-menu').supersubs({minWidth:8,maxWidth:16,extraWidth:1}).superfish({
delay: 200,
animation: {height:'show'},
speed: 125,
autoArrows: true
});
}else if('mega'===headerType.menu_type){
jQuery('.mega-menu').dcMegaMenu({
rowItems: 5,
speed: 'fast',
effect: 'slide',
});
}
$('#nav-primary.right>nav>div>ul>li.menu-item:visible:last,#nav-primary.left>nav>div>ul>li.menu-item:visible:first').addClass('no-margin');
$('#nav-primary>nav>div>ul>li>a[href*="#"]:not([href="#"])').click(function(e){
e.preventDefault();
if(ozy_click_hash_check(this)){
window.location=$WP_HOME_URL + $(this).attr('href');
}});
jQuery(".load_more_blog").click(function(e){
jQuery(this).text(jQuery(this).addClass('pulse animation animated').data('loadingcaption'));
var order=jQuery(this).data("order");
var orderby=jQuery(this).data("orderby");
var item_count=jQuery(this).data("item_count");
var excerpt_length=jQuery(this).data("excerpt_length");
var category_name=jQuery(this).data("category_name");
var offset=jQuery(this).data("offset");
var found=jQuery(this).data("found");
var layout_type=jQuery(this).data("layout_type");
var default_grid_effect=jQuery(this).data("default_grid_effect");
offset=offset + item_count;
ozy_ajax_load_more_blog(order, orderby, item_count, category_name, offset, found, jQuery(this), layout_type, default_grid_effect);
jQuery(this).data("offset", offset)
e.preventDefault();
return false;
});
if(jQuery().fullpage){
$('#content.full-row-slider').fullpage({
verticalCentered: false,
'css3': false,
'scrollingSpeed': 1e3,
'easing': 'easeInOutCubic',
anchors: fullPageParams.anchors.split(','),
sectionSelector: '#full-page>.wpb_row',
slideSelector: '#full-page>.wpb_row .wpb_row',
'navigation': true,
'navigationPosition': 'right',
afterLoad:function(anchorLink, index){
var $elm=$('#full-page>.wpb_row').eq(index-1);
$elm.find('.wpb_appear').addClass('wpb_start_animation');
},
onLeave:function(index, nextIndex, direction){
var $elm=$('#full-page>.wpb_row').eq(index-1);
setTimeout(function(){
$elm.find('.wpb_appear').removeClass('wpb_start_animation');
}, 1000);
}});
$('.fp-slides').parents('.vc_column-inner').css('height', '100%');
$('.fp-slides').parents('.wpb_wrapper').css('height', '100%');
}
var main_margin_top=$('#main').css('margin-top');
setTimeout(function(){
$(document).on('touchstart, click', '#ozy-close-search,.menu-item-search>a', function(e){
e.preventDefault();
if($('#top-search').hasClass('open')){
$('#main').animate({'margin-top': parseInt(main_margin_top) + 'px'}, 200, 'easeInOutExpo');
$('#top-search').animate({height:'0px', opacity:0}, 200, 'easeInOutExpo',function(){$('#top-search>form>input').focus();$('#top-search').removeClass('open');});
}else{
$('#main').animate({'margin-top': (parseInt(main_margin_top) + 50) + 'px'}, 200, 'easeInOutExpo');
$('#top-search').animate({height:'50px', opacity:1}, 200, 'easeInOutExpo',function(){$('#top-search>form>input').focus();$('#top-search').addClass('open');});
}
return false;
});
}, 2000);
if(!$('body').hasClass('ozy-alternate-menu')&&!$('body').hasClass('ozy-menu-script')){
var headerMenuFixed=false;
$(window).scroll(function(){
if($(this).scrollTop() >=50){
if(!headerMenuFixed){
$('body').addClass('ozy-alternate-menu');
}}else{
$('body').removeClass('ozy-alternate-menu');
headerMenuFixed=false;
}});
}
jQuery('#sidr-menu').click(function(e){
$.sidr('open', 'sidr');
e.preventDefault();
});
var sidr_animated_button=jQuery('#sidr-menu').find('button');
jQuery('#sidr-menu').sidr({
side: (headerType.menu_align!=='center' ? headerType.menu_align:'right'),
name: 'sidr',
displace: !$('body').hasClass('ozy-page-model-boxed'),
speed: 400,
onOpen: function(){
if(jQuery().royalSlider){
$('#sidr .ozy-testimonials:not(.fixed)').each(function(){
var slider=$(this).data('royalSlider');
slider.updateSliderSize(true);
$(this).addClass('fixed');
});
}
setTimeout(function(){ sidr_animated_button.addClass('close') }, 300);
},
onClose: function(){
setTimeout(function(){ sidr_animated_button.removeClass('close') }, 300);
}});
$(window).resize(function(){
if($("#sidr").is(':visible')){
$.sidr('close', 'sidr');
}});
$(document).on("click", function(e){
if(parseInt(ozyIosVersion)===0 ||
parseInt(ozyIosVersion) >=7){
var sidr_div=$("#sidr");
if(!sidr_div.is(e.target)&&!sidr_div.has(e.target).length&&sidr_div.is(':visible')){
$.sidr('close', 'sidr');
}}
});
$(document).on("touchstart", function(e){
var sidr_div=$("#sidr");
if(!sidr_div.is(e.target)&&!sidr_div.has(e.target).length&&sidr_div.is(':visible')){
$.sidr('close', 'sidr');
}});
if(parseInt(ozyIosVersion) > 0){
jQuery('#sidr-menu').click(function(e){
if($(this).data('opened')=='1'){
if(parseInt(ozyIosVersion) < 7){
$('#header,#footer').css('left', '0px');
}
$.sidr('close', 'sidr');
$(this).data('opened', '0');
}else{
if(parseInt(ozyIosVersion) < 7){
$('#header,#footer').css('left', '-260px');
}
$.sidr('open', 'sidr');
$(this).data('opened', '1');
}
e.preventDefault();
});
}
$('#sidr .menu li a').click(function (e){
$(this).parent('li').toggleClass('close');
if($(this).parent('li').hasClass('menu-item-has-children')){
e.preventDefault();
}
var ullist=$(this).parent().children('ul:first');
ullist.slideToggle();
}).click();
function ozy_visual_stuff(){
if($('#mc_signup_form').length>0){
$('input[name="mc_mv_EMAIL"]').each(function(){
$(this).attr('placeholder', $('.mc_header_email').first().text());
});
$('#mc_signup_submit.button').removeClass('button');
}
$('.wpb_row[data-bgscroll]').each(function(){
var params=$(this).data('bgscroll').split(',');
$(this).ozyBgScroller({direction:params[0], step:params[1]});
});
$('.flip-container').each(function(){
$(this).parents('.wpb_row').css('overflow', 'hidden');
});
var inline_style='';
$('.title-with-icon-wrapper.connected').each(function(){
inline_style +='#' + $(this).attr('id') + ':before{border-color:'+ $(this).data('color') +';}';
});
if(inline_style){ $('head').append(''); }
if(ozyIosVersion <=0){
$('.wpb_row.ozy-custom-row.parallax').each(function(){ //,.wide-row-inner.parallax
$(this).rParallax("center", 0.3, true);
});
$('.row-botton-button').addClass('animation animated bounce');
}else{
$('.wpb_row.ozy-custom-row.parallax').each(function(){
$(this).css('background-repeat','repeat');
});
}
$(document).on('click', '.post-submeta>a.post-share', function(e){
if($(this).data('open')!=='1'){
$(this).data('open', '1').next('div').stop().animate({'margin-left': '0', opacity: 'show'}, 300, 'easeInOutExpo');
}else{
$(this).data('open', '0').next('div').stop().animate({'margin-left': '30px', opacity: 'hide'}, 300, 'easeInOutExpo');
}
e.preventDefault();
});
$(document).on("click", function(e){
var post_share_button=$(".post-submeta>a.post-share");
if(!post_share_button.is(e.target)&&!post_share_button.has(e.target).length){
post_share_button.data('open', '0').next('div').stop().animate({'margin-left': '30px', opacity: 'hide'}, 300, 'easeInOutExpo');
}});
$(function(){
$('.tooltip').tooltipsy();
});
if(jQuery().royalSlider){
$('.postGallerySlider').royalSlider({
transitionSpeed: 800,
slidesSpacing: 0,
autoHeight: true,
autoScaleSlider: false,
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
imageScaleMode: 'fill',
imageAlignCenter: true,
blockLoop: true,
loop: false,
numImagesToPreload: 2,
keyboardNavEnabled: true,
block: {
delay: 400
},
autoPlay: {
enabled: true,
pauseOnHover: true,
delay: 3300
}});
}
if(jQuery().masonry){
if(('body.search-results').length){
$('body.search-results .post-content>div').imagesLoaded(function(){
$('body.search-results .post-content>div').masonry({
itemSelector:'article.result',
gutter:20
});
});
}}
$('.wpb_map_wraper').each(function(){
$(this).append($('').click(function(){ $(this).remove(); })
);
});
$('.ozy-fancyaccordion-feed>a').click(function(e){
e.preventDefault();
var $that=$(this).find('.plus-icon'), ullist=$(this).next('div.panel');
if($that.hasClass('open')){$that.removeClass('open').addClass('close');}else{$that.removeClass('close').addClass('open');}
if(!$(this).hasClass('open')){
$(this).parent('div.ozy-fancyaccordion-feed').find('a.open').each(function(){
$(this).removeClass('open');
$(this).next('div.panel').slideToggle(400, 'easeInOutExpo');
$(this).find('.plus-icon').removeClass('open').addClass('close');
});
}
$(this).toggleClass('open');
ullist.slideToggle(400, 'easeInOutExpo');
});
}
ozy_visual_stuff();
function ozy_vc_components(){
$('.ozy-tlt').each(function(){
$(this).textillate({
minDisplayTime: $(this).data('display_time'),
selector: '.ozy-tlt-texts',
loop: true,
in: {
effect: $(this).data('in_effect'),
sync: ($(this).data('in_effect_type')=='sync' ? true:false),
shuffle: ($(this).data('in_effect_type')=='shuffle' ? true:false),
'reverse': ($(this).data('in_effect_type')=='reverse' ? true:false),
sequence: ($(this).data('in_effect_type')=='sequence' ? true:false)
},
out: {
effect: $(this).data('out_effect'),
sync: ($(this).data('out_effect_type')=='sync' ? true:false),
shuffle: ($(this).data('out_effect_type')=='shuffle' ? true:false),
'reverse': ($(this).data('out_effect_type')=='reverse' ? true:false),
sequence: ($(this).data('out_effect_type')=='sequence' ? true:false)
}});
});
$('.parallax-viewport3').each(function(){
var $this=$(this);
$this.imagesLoaded(function(){
$this.css('background-image', 'none').parallax();
});
});
var bg_image_arr=[];
$('.parallax-viewport4').each(function(){
var $this=$(this);
$(this).find('li.layer>div').each(function(index){ bg_image_arr[index]=$(this).data('src'); });
ozy_preloadImages(bg_image_arr).done(function(images){
$this.animate({opacity: 0.1}, 500, 'easeInOutExpo', function(){
$this.css('background-image', 'none').parallax();
$this.find('li.layer>div').each(function(index){
$(this).css({'background-image': 'url('+ $(this).data('src') +')', 'background-repeat':'no-repeat', 'background-position':'center center'});
});
$this.animate({opacity: 1}, 500, 'easeInOutExpo');
})
});
});
$('.title-with-icon-wrapper>div>span[data-color],.ozy-icon[data-color]').flatshadow({angle: "SE", fade: false, boxShadow: false });
$('.ozy-morph-text').each(function(){
$(this).find(".text-rotate").Morphext({
animation: $(this).data('effect'),
separator: $(this).data('separator'),
speed: $(this).data('speed')
});
});
$('.ozy-owlcarousel').each(function(){
var $owl=$(this);
$owl.owlCarousel({
lazyLoad:true,
autoPlay: $(this).data('autoplay'),
items:$(this).data('items'),
singleItem:$(this).data('singleitem'),
slideSpeed:$(this).data('slidespeed'),
autoHeight:$(this).data('autoheight'),
itemsDesktop:[1199,3],
itemsDesktopSmall:[979,3],
addClassActive: true,
navigation: ($owl.hasClass('single') ? true:false),
navigationText:($owl.hasClass('single') ? ['','']:false),
afterInit:function(elem){
owlCreateBar(this);
setTimeout(function(){ $owl.find('.owl-item>.item').css({'width': '', 'height': ''});}, 3000);
},
afterLazyLoad: function(){
},
afterUpdate:function(elem){
owlCreateBar(this);
owlMoveBar(this, elem);
$(window).trigger('resize');
},
afterMove:function(elem){
owlMoveBar(this, elem);
}});
});
function owlAfterAction(){
}
function owlCreateBar(owl){
var owlPagination=owl.owlControls.find('.owl-pagination');
owlPagination.append("");
}
function owlMoveBar(owl, elem){
var owlPagination=owl.owlControls.find('.owl-pagination');
var ProgressBar=owlPagination.find('.progressbar');
var currentIndex=owlPagination.find($('.active')).index();
var totalSlide=$(elem).find($('.owl-item')).length;
ProgressBar.css({width:(currentIndex * 100 / (totalSlide-1)) + '%' });
}
if('undefined'!==typeof jQuery.fn.waypoint){
jQuery('.ozy-counter>.timer').waypoint(function(){
if(!$(this).hasClass('ran')){
$(this).addClass('ran').countTo({
from: $(this).data('from'),
to: $(this).data('to'),
speed: 5000,
refreshInterval: 25,
sign: $(this).data('sign'),
signpos: $(this).data('signpos')
});
}},{
offset: '85%'
});
}
jQuery('.ozy-before_after').imagesLoaded(function(){
if(jQuery().twentytwenty){ jQuery(".ozy-before_after").twentytwenty().css('visibility','visible').hide().fadeIn('slow'); }});
if(jQuery().royalSlider){
$('.visibleNearby').royalSlider({
slidesSpacing: 0,
addActiveClass: true,
arrowsNav: false,
controlNavigation: 'none',
autoScaleSlider: false,
loop: true,
fadeinLoadedSlide: true,
globalCaption: true,
keyboardNavEnabled: true,
globalCaptionInside: false,
visibleNearby: {
enabled: true,
centerArea: 0.5,
center: true,
breakpoint: 650,
breakpointCenterArea: 0.64,
navigateByCenterClick: true
},
autoPlay: {
enabled: true,
pauseOnHover: true,
delay: 1300
}}).data('royalSlider');
$('.ozy-testimonials').royalSlider({
slidesSpacing: 0,
autoScaleSlider:false,
autoHeight: true,
imageScaleMode: 'none',
arrowsNav: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
imageAlignCenter:false,
loop: false,
loopRewind: true,
numImagesToPreload: 2,
keyboardNavEnabled: false,
usePreloader: false,
autoPlay: {
enabled: true,
pauseOnHover: true,
delay: 3300
}});
$('.ozy-slider.auto-height-slider').each(function(){
$(this).royalSlider({
slidesSpacing: 0,
transitionSpeed: 800,
autoHeight: true,
autoScaleSlider:false,
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
imageScaleMode: 'fill',
imageAlignCenter:false,
blockLoop: true,
loop: false,
numImagesToPreload: 2,
keyboardNavEnabled: true,
block: {
delay: 400
},
autoPlay: {
enabled: true,
pauseOnHover: true,
delay: 1300
}});
});
$('.ozy-slider.auto-height-slider-vertical').royalSlider({
slidesSpacing: 0,
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: true,
controlNavigation: 'none',
imageScaleMode: 'fill',
imageAlignCenter:true,
loop: false,
loopRewind: true,
numImagesToPreload: 4,
slidesOrientation: 'vertical',
keyboardNavEnabled: true,
video: {
autoHideArrows:true,
autoHideControlNav:true
},
autoScaleSlider: true
});
$('.ozy-slider.fixed-slider').royalSlider({
slidesSpacing: 0,
transitionSpeed: 800,
autoHeight: false,
autoScaleSlider:false,
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
imageScaleMode: 'fill',
imageAlignCenter:false,
blockLoop: true,
loop: false,
numImagesToPreload: 2,
keyboardNavEnabled: true,
block: {
delay: 400
},
autoPlay: {
enabled: true,
pauseOnHover: true,
delay: 1300
}});
}}
ozy_vc_components();
$('.wpb_row').bind('inview', function (event, visible){
var $elm=$('#nav-primary a[href*="#'+ jQuery(this).attr('id') +'"]:not([href="#"])').parent();
if(visible==true){
$elm.addClass('current_page_item');
}else{
$elm.removeClass('current_page_item');
}});
$('.ozy-custom-fullheight-row').each(function(){
$(this).css('min-height', $(window).innerHeight() - (($(this).outerHeight() - $(this).height())) + 'px');
});
$('#content a.row-botton-button[href*="#"]:not([href="#"])').click(function(e){
e.preventDefault();
if($('body').hasClass('page-template-page-row-slider-php')){
$.fn.fullpage.moveSectionDown();
}else{
if(ozy_click_hash_check(this)){
window.location=$WP_HOME_URL + $(this).attr('href');
}}
});
if('undefined'!==typeof jQuery.fn.waypoint){
jQuery('.ozy-waypoint-animate').waypoint(function(){
jQuery(this).addClass('ozy-start-animation');
},{
offset: '85%'
});
}
$(document).on('click', '.blog-like-link', function(e){
ajax_favorite_like($(this).data('post_id'), 'like', 'blog', this);
e.preventDefault();
});
$('.woocommerce-page a.zoom').each(function(){ $(this).attr('rel', 'product-gallery'); });
$(".wp-caption>p").click(function(){ jQuery(this).prev('a').attr('title', jQuery(this).text()).click(); });
$(".fancybox, .wp-caption>a, .woocommerce-page .zoom,.single-image-fancybox a").fancybox({
beforeLoad: function(){
},
padding:0,
helpers:{
title:{ type:'inside' },
buttons:{}}
});
$('.fancybox-media').fancybox({openEffect:'none',closeEffect:'none',helpers:{title:{ type:'inside' }, media:{}}});
$(window).scroll(function(){
if($(this).scrollTop() >=100){
$('#to-top-button').stop().animate({bottom:'32px', opacity: 1}, 200, 'easeInOutExpo');
}else{
$('#to-top-button').stop().animate({bottom:'-32px', opacity: 0}, 200, 'easeInOutExpo');
}});
$('#to-top-button').click(function(e){
e.preventDefault();
$('body,html').animate({scrollTop:0},800);
});
jQuery('#ozy-language-selector-title').click(function(e){
e.preventDefault();
jQuery('#ozy-language-selector').slideToggle(500, 'easeInOutExpo',function(){
jQuery(this).toggleClass('open');
});
});
});
var a=['','one ','two ','three ','four ', 'five ','six ','seven ','eight ','nine ','ten ','eleven ','twelve ','thirteen ','fourteen ','fifteen ','sixteen ','seventeen ','eighteen ','nineteen '];
var b=['', '', 'twenty','thirty','forty','fifty', 'sixty','seventy','eighty','ninety'];
function ozy_inWords (num){
if((num=num.toString()).length > 9) return 'overflow';
n=('000000000' + num).substr(-9).match(/^(\d{2})(\d{2})(\d{2})(\d{1})(\d{2})$/);
if(!n) return; var str='';
str +=(n[1]!=0) ? (a[Number(n[1])]||b[n[1][0]] + ' ' + a[n[1][1]]) + 'crore ':'';
str +=(n[2]!=0) ? (a[Number(n[2])]||b[n[2][0]] + ' ' + a[n[2][1]]) + 'lakh ':'';
str +=(n[3]!=0) ? (a[Number(n[3])]||b[n[3][0]] + ' ' + a[n[3][1]]) + 'thousand ':'';
str +=(n[4]!=0) ? (a[Number(n[4])]||b[n[4][0]] + ' ' + a[n[4][1]]) + 'hundred ':'';
str +=(n[5]!=0) ? ((str!='') ? 'and ':'') + (a[Number(n[5])]||b[n[5][0]] + ' ' + a[n[5][1]]):'';
return str;
}
(function(a){a.fn.equalheight=function(b){if(!b){throw new Error("Number of columns is required")}var h=0;var e=[];var g=[];a(this).each(function(j){g.push(this);if(j%b){e.push(g);g=[]}});for(var d=0;d=h){h=a(e[d][c]).outerHeight(true)}}for(var f=0;f0&&ozyGetOsVersion()<=0){
jQuery(document).ready(function(h){if(!Array.prototype.indexOf){Array.prototype.indexOf=function(j){var i=this.length>>>0;var k=Number(arguments[1])||0;k=(k<0)?Math.ceil(k):Math.floor(k);if(k<0){k+=i}for(;k").attr("src",k).bind("load",function(){e()});h("").attr("src",k).bind("error",function(){e()})});function e(){f++;b=Math.floor(f/g.length*100);h("#loaderMask").html(''+ozy_inWords(b)+' %
');if(b===100){h("#loaderMask").html('one hundred %
');h("#loaderMask").fadeOut(function(){h("#frame").animate({opacity:1},300,"easeInOutExpo");})}}function a(i){h("#loaderMask").html("100%").delay(3000).fadeOut(1000,function(){h("#frame").animate({opacity:1},300,"easeInOutExpo");})}});
}else{
jQuery('#loaderMask').remove();
};
(function(C,z,f,r){var q=f(C),n=f(z),b=f.fancybox=function(){b.open.apply(this,arguments)},H=navigator.userAgent.match(/msie/),w=null,s=z.createTouch!==r,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},p=function(a){return a&&"string"===f.type(a)},F=function(a){return p(a)&&0